using System;
using System.ComponentModel.DataAnnotations;

namespace Ant.Dto.PersonnelDto
{
    public class AddUserDto
    {
        /// <summary>
        /// 用户权限
        /// </summary>
        /// <value></value>
        private int _userRole;
        
        public int UserRole
        {
            get { return _userRole; }
            set { _userRole = value==0?2:value; }
        }
        

        /// <summary>
        /// 用户昵称
        /// </summary>
        /// <value></value>
        public string UserName { get; set; }
        
        /// <summary>
        /// 用户邮箱
        /// </summary>
        /// <value></value>
        public string UserEmail { get; set; }

        /// <summary>
        /// 用户密码
        /// </summary>
        /// <value></value>
        public string UserPwd { get; set; }
    }
}